<?php

/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/12/4
 * Time: 16:04
 */
namespace App\Http\Controllers\Ajax;

use App\Http\Controllers\Controller;
use App\Models\AjaxModel;
use Illuminate\Http\Request;
use Illuminate\Http\Response;
use Illuminate\Support\Facades\Cookie;

class ProductAjax extends Controller
{
    public function getProdects()
    {

    }
    public function getFansbuyShortUrl($goodsId,$groupId='')
    {//获取端链接
        $Ajax = new AjaxModel();
        $res = $Ajax->getShortUrl();
        if($res)
        {
            return $res;
        }
        else
        {
            $res = $Ajax->getApiShortUrl();
        }
    }
    public function getFansKongling($goodsId,$groupId='')
    {//获取淘口令

    }


}